﻿using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Windows.Controls.Primitives;
using WpfApp.Models;

namespace WpfApp.ViewModels
{
    public class TagViewModel : BindableBase
    {
        private ObservableCollection<MenuBar> menuBars;
        private readonly IRegionManager regionManager;

        public ObservableCollection<MenuBar> MenuBars
        {
            get { return menuBars; }
            set { menuBars = value; RaisePropertyChanged(); }
        }
        public TagViewModel(IRegionManager regionManager)
        {
            MenuBars = new ObservableCollection<MenuBar>();
            this.regionManager = regionManager;
            CreateMenuBar();
        }
        void CreateMenuBar()
        {
            MenuBars.Add(new MenuBar() { Icon = "UsbPort", Title = "串口", NameSpace = "" });
            MenuBars.Add(new MenuBar() { Icon = "Update", Title = "升级", NameSpace = "" });
        }
    }
}
